<@import src="funcs/getImports.ftl"/>
<@import src="funcs/getType.ftl"/>
<@import src="funcs/definePk.ftl"/>
package ${basePackage}.dao.${moduleName}.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
${getImports(table.fields)}
@Data
@ApiModel("${table.comment}1")
public class ${table.pascalCaseName} {

<#list table.fields as field>
<#if field.isPrimaryKey>
    @TableId(type = IdType.AUTO)
</#if>
    @ApiModelProperty(value="${field.comment}")
    private ${getType(field)} ${field.camelCaseName};

</#list>
}
